<?php
	$mysqli = mysqli_init();
	if(!$mysqli) {
		die('mysqli_init failed.');
	}
	if(!mysqli_real_connect($mysqli, 'localhost', 'root', 'foreverno.1', 'labratory.qdu')) {
		die('Connect Fail, Error: (' . mysqli_connect_errno($mysqli) . ')' . mysqli_connect_error($mysqli));
	}
	if(!mysqli_set_charset($mysqli, 'utf8')) {
		die('Charset setting fail, current charset is' . mysqli_character_set_name($mysqli));
	}

	$mysqli_stmt = mysqli_stmt_init($mysqli);
	if(!$mysqli_stmt) {
		die('Statement Initialization Fail, Error: (' . mysqli_errno($mysqli) . ')' . mysqli_error($mysqli)); 
	}
?>
